package demo02;

public class Demo03SubString {
    public static void main(String[] args) {
        String str1="HelloWorld";
        String str2=str1.substring(5);
        System.out.println(str1);
        System.out.println(str2);

        System.out.println(str1.substring(5,10));//[begin,end)
    }
}
